#include "UdpServer.hpp"
#include <memory>
void Usage(char *proc)
{
    std::cout << proc << " serverport" << std::endl;
    exit(1);
}
int main(int argc, char *argv[])
{
    if (argc != 2)
    {
        Usage(argv[0]);
    }

    // 创建服务器
    int serverport = std::stoi(argv[1]);
    std::unique_ptr<UdpServer> svr = std::make_unique<UdpServer>(serverport);
    svr->Init();
    svr->Start();

    return 0;
}